package love.yuanmengrobot.thousandlanguagegarden.bus.controller;

import love.yuanmengrobot.thousandlanguagegarden.bus.entity.UserEvents;
import love.yuanmengrobot.thousandlanguagegarden.bus.service.UserEventsService;
import love.yuanmengrobot.thousandlanguagegarden.bus.vo.MyGarden;
import love.yuanmengrobot.zframe.ioc.annotation.Autowired;
import love.yuanmengrobot.zframe.mvc.annotation.Controller;
import love.yuanmengrobot.zframe.mvc.annotation.RequestMapping;


/**
 * (UserEvents)表控制层
 *
 * @author COOLIGHT
 * @since 2021-07-13 14:00:42
 */
@Controller
@RequestMapping("userEvents")
public class UserEventsController {
    /**
     * 服务对象
     */
    @Autowired
    UserEventsService userEventsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @RequestMapping("selectOne")
    public UserEvents selectOne(String id) {
        return this.userEventsService.queryById(id);
    }

    @RequestMapping("loadMyGarden")
    public MyGarden loadMyGarden(String id) {
        return userEventsService.loadMyGarden(id);
    }
}
